﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SGSGameServer.Protocal
{
    [Serializable()]
    [System.Xml.Serialization.XmlRoot("Message")]
    public class Message<T>
    {
        public Message()
            : this(0, default(T))
        {
        }

        public Message(int messageType, T data)
        {
            MessageType = messageType;
            Data = data;
        }

        public int MessageType
        {
            get;
            set;
        }

        public T Data
        {
            get;
            set;
        }
    }
}
